<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\User */
$this->registerCssFile('/css/common.css');
$this->registerCssFile('/fonts/iconfont.css');
$this->registerJsFile('/js/public.js');
$this->registerJsFile('/layer/layer.js');
$this->title = Yii::$app->user->identity->username . '的个人资料';
$this->registerJs('
    $("#subform").click(function(){
    $.ajax({
    type:"post",
    data:$("#passform").serialize(),
    dataType:"json",
    success:function(data){
        if(data[0]==1){
        window.location.href="/site/logout.html";
        }else if(data[0]==0){
                layer.tips("验证码不正确", "#code", {
                  tips: [1, "#3595CC"],
                  time: 4000
                });
        }else if(data[0]==0){
            layer.tips("修改失败", "#code", {
                  tips: [1, "#3595CC"],
                  time: 4000
                });
        }else{
            $.each(data,function(k,v){
                layer.tips(v, "#"+k, {
                  tips: [1, "#3595CC"],
                  time: 4000
                });
            });
        }
    }
})
});
    ');
?>
<div class="info_content">
					<!--修改密码样式-->
					<div class="change_Password">
						<div class="title_Section">
							<span>修改密码</span>
						</div>
						<?php ActiveForm::begin(['id'=>'passform'])?>
						<ul class="p_modify">
							<li class="new_password"><label>新密码</label>
								<div class="ywz_zhuce_xiaoxiaobao">
									<div class="ywz_zhuce_kuangzi">
										<input style='margin-left: 0px;' id='password' name="ResetPasswordForm[password]" type="password"
											class="ywz_zhuce_kuangwenzi1 text_Password">
									</div>
									<div class="ywz_zhuce_huixian" id="pwdLevel_1">弱</div>
									<div class="ywz_zhuce_huixian" id="pwdLevel_2">中</div>
									<div class="ywz_zhuce_huixian" id="pwdLevel_3">强</div>
								</div>
								<div class="ywz_zhuce_yongyu1">
									<span id="pwd_err" style="color: rgb(255, 0, 0)">6-16位，由字母（区分大小写）、数字、符号组成</span>
								</div></li>
							<li><label>确认密码</label><input id='rpassword' name="ResetPasswordForm[rpassword]" type="password"
								class="text_Password" /></li>
							<li><label>手机号码</label><input id='tel' name="ResetPasswordForm[tel]" type="text"
								class="text_Password" /></li>
							<li><label>验证码</label><input id='code' name="ResetPasswordForm[code]" type="text"
								class="text_Password code" /><input
						type='button' class='btn' value='获取验证码' onclick='settime(2)'></li>
							<li><input id='subform' name="submit" type="button" class="bnt_blue_1"
								style="border: none;" value="确认修改"></li>
						</ul>
						<?php ActiveForm::end()?>
					</div>
				</div>
